﻿
fs.util.pageLoadFunction.push(function () {
    fs.sys.defaultDigits = 4;
});

firstColumns = [
  { index: 1, headerText: "Local Currency", edit: false, width: 80, rowText: "LC", manual: true },
  { index: 2, headerText: "Foreign Currency", edit: false, width: 80, rowText: "FC", manual: true },
  { index: 4, headerText: "YTD M-1", edit: true, width: 80, rowText: "YTDM_1", style: "fs_disable", hide: true },
  { index: 4, headerText: "YTD", edit: true, width: 80, rowText: "Budget_YTD" },
  { index: 3, headerText: "Current Month", edit: true, width: 80, rowText: "Budget_CM" },
  { index: 3, headerText: "Reforecast Closing rate", edit: true, width: 80, rowText: "RCR" },
  { index: 3, headerText: "Reforecast", edit: true, width: 80, rowText: "Reforecast" }

];

  var readyJSON = [
{ accountcode: "ER03000001", LC: "EUR", FC: "USD", datarow: true, Process: [{
    Field: "YTDM_1",
    Exp: {
        mode: "refrence", list: "Common_Exchange_Rate_Budget", fields: ["Budget_YTD|ER03000001"], equ: "+", lastmonth: true
    }
}, {
    Field: "Budget_YTD",
    Exp: {
        mode: "search", fields: ["Budget_CM|ER03000001", "YTDM_1|ER03000001"], equ: "+", lastmonth: true
    }
}]},
{ accountcode: "ER03000002", LC: "EUR", FC: "RMB", datarow: true, Process: [{
    Field: "YTDM_1",
    Exp: {
        mode: "refrence", list: "Common_Exchange_Rate_Budget", fields: ["Budget_YTD|ER03000002"], equ: "+", lastmonth: true
    }
}, {
    Field: "Budget_YTD",
    Exp: {
        mode: "search", fields: ["Budget_CM|ER03000002", "YTDM_1|ER03000002"], equ: "+", lastmonth: true
    }
}]
},
{ accountcode: "ER03000003", LC: "EUR", FC: "SGD", datarow: true, Process: [{
    Field: "YTDM_1",
    Exp: {
        mode: "refrence", list: "Common_Exchange_Rate_Budget", fields: ["Budget_YTD|ER03000003"], equ: "+", lastmonth: true
    }
}, {
    Field: "Budget_YTD",
    Exp: {
        mode: "search", fields: ["Budget_CM|ER03000003", "YTDM_1|ER03000003"], equ: "+", lastmonth: true
    }
}]
},
{ accountcode: "ER03000004", LC: "EUR", FC: "JPY", datarow: true, Process: [{
    Field: "YTDM_1",
    Exp: {
        mode: "refrence", list: "Common_Exchange_Rate_Budget", fields: ["Budget_YTD|ER03000004"], equ: "+", lastmonth: true
    }
}, {
    Field: "Budget_YTD",
    Exp: {
        mode: "search", fields: ["Budget_CM|ER03000004", "YTDM_1|ER03000004"], equ: "+", lastmonth: true
    }
}]
},
{ accountcode: "ER03000005", LC: "EUR", FC: "KRW", datarow: true, Process: [{
    Field: "YTDM_1",
    Exp: {
        mode: "refrence", list: "Common_Exchange_Rate_Budget", fields: ["Budget_YTD|ER03000005"], equ: "+", lastmonth: true
    }
}, {
    Field: "Budget_YTD",
    Exp: {
        mode: "search", fields: ["Budget_CM|ER03000005", "YTDM_1|ER03000005"], equ: "+", lastmonth: true
    }
}]
}

]